package com.feng.kuang.bean;

import com.sun.istack.internal.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "book")
@Component
public class Book {
    @NotNull
    private Integer id;
    private String name;
//    @Email(message="邮箱格式错误")
    private String password;
}
